﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Stock
{
    /// <summary>
    /// 库存查询接口
    /// </summary>
    public interface IItemStockServices
    {

        /// <summary>
        /// 分页获取
        /// </summary>
        /// <param name="PageIndex">当前页</param>
        /// <param name="PageSize">页大小</param>
        /// <param name="WarehouseId">仓库Id</param>
        /// <param name="ItemTypeId">物料类型Id</param>
        /// <param name="ItemName">商品名称</param>
        /// <returns></returns>
        public Task<IEnumerable<ItemStock>> GetAsync(int PageIndex, int PageSize, string WarehouseId, string ItemTypeId, string ItemName);
        /// <summary>
        /// 获取总条数
        /// </summary>
        /// <param name="WarehouseId">仓库Id</param>
        /// <param name="ItemTypeId">物料类型Id</param>
        /// <param name="ItemName">商品名称</param>
        /// <returns></returns>
        public Task<int> GetCountAsync(string WarehouseId, string ItemTypeId, string ItemName);





        /// <summary>
        /// 分页获取明细
        /// </summary>
        /// <param name="WarehouseId">仓库Id</param>
        /// <param name="OrderTypeName">订单类型名称</param>
        /// <param name="ItemId">商品Id</param>
        /// <returns></returns>
        public Task<IEnumerable<ItemStockItem>> GetDetailsAsync(string WarehouseId, string ItemId, string OrderTypeName);
        
















    }
}
